<template>
    <el-dialog :visible.sync="visible">
        <el-form>
            <el-form-item label="示例">
                <el-select></el-select>
            </el-form-item>
            <el-form-item>
                <code-editor ref="editor" class="editor h-100" v-model="editorContent"
                             language="groovy" theme="dracula"></code-editor>
            </el-form-item>
        </el-form>
    </el-dialog>
</template>

<script>
    import CodeEditor from "../code-editor";
    export default {
        name: "dataset-edit",
        components: {CodeEditor},
        data(){
            return {
                visible: false,
                data: {
                    ...this.initData()
                }
            }
        },
        methods:{
            initData(){
                return {

                }
            },
            show(){
                this.visible = true
            }
        }
    }
</script>

<style scoped>

</style>
